package org.springframework.samples.countries.web.translate;

import java.util.Map;

import org.springframework.web.servlet.support.RequestContext;

import pikes.ecma.SourceElement;
import pikes.ecma.SourceElements;
import pikes.peak.RequestProperty;

public class Behaviour implements RequestProperty<SourceElements> {

	private SourceElements sourceElements = new SourceElements();

	public SourceElements getValue(Map model, RequestContext requestContext) throws Exception {
		return sourceElements;
	}

	public void add(SourceElement ecmaSourceElement) {
		sourceElements.add(ecmaSourceElement);

	}

}